home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1051.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  615 b   |  5 lines

  1. Short answer: generalizations are always wrong (that's a generalization :-).
  2.  
  3. The long answer is another generalization: most C++ programmers use regular containment (also called 'composition' or 'aggregation') more often than private inheritance.  The usual reason is that they don't *want* to have access to the internals of too many other classes.
  4.  
  5. Private inheritance is not evil; it's just more expensive to maintain, since it increases the number of classes that have access to 'internal' parts of other classes (coupling).  The 'protected' parts of a class are more likely to change than the 'public' parts.